Skip to main content

Setting up Raspberry Pi

This doc describes the installation of Raspberry Pi OS via Ubuntu 20.04LTS There is a Windows version of the raspberry pi imager as well.

  1. Download raspberry pi imager.

    snap install rpi-imager
  2. Open rpi-imager and select OS (64bit) and the SD card.

    rpi imager

  3. Go to settings and set the properties.

    1. Hostname: RPi3-B+ (B, C, D etc)
    2. Username: gqc
    3. Password: Ubuntu2@22
    4. Enable SSH
    5. Then set wifi AP info, etc. settings in imager
  4. Click Write. It will burn the OS to the SD card.

Connecting to the Raspberry Pi​

  1. To find the IP address of the device. We can use ping <hostname>.local command Eg:

    ping Rpi4-A.local

    In my network it was 192.168.0.27

    See more info here.

  2. Connect through SSH

    sudo ssh gqc@192.168.0.27
  3. Upgrade the packages

    sudo apt-get update
    sudo apt-get upgrade
  4. Setup the timezon

    sudo timedatectl set-timezone America/Los_Angeles
  5. Setup PostgreSQL (following https://pimylifeup.com/raspberry-pi-postgresql/)

    1. Install PostgreSQL (Current supported version by default is 13)

      sudo apt install postgresql
    2. PG13: add superuser gqc with password postgres

      createuser gqc -P --interactive
  6. Setup github access (https://general.gqc.com/dev/ssh%20keys%20and%20config#github)

Setup R-Pi to update time automatically from ntp​

We've set it up following this article

Notes on installing other software​

  1. Installing Grafana locally. https://friendsoflittleyus.nl/grafana-on-raspberry-pi4/